package cn.jxau.bean.form;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 表单bean用来修改用户密码
 * @author licho
 *
 */
public class ModifyPwd {
	@NotEmpty(message="用户名不能为空")
	private Long id;//用户id
	@NotEmpty(message="原密码不能为空")
	private String pwd;//用户密码
	@NotEmpty(message="新密码不能为空")	
	@Length(min=6,max=30,message="密码长度必须在6-30")
	private String npwd;//新密码
	private Integer code;//验证码
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getNpwd() {
		return npwd;
	}
	public void setNpwd(String npwd) {
		this.npwd = npwd;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "ModifyPwd [id=" + id + ", pwd=" + pwd + ", npwd=" + npwd + ", code=" + code + "]";
	}
	
}
